package com.glowworms.core.util;

import javax.servlet.http.HttpServletRequest;

/**
 * 
 */
public abstract class WebUtils extends org.springframework.web.util.WebUtils{
	
	/**
	 * 是否是ajax请求
	 * @param request
	 * @return
	 */
	public static boolean isAjaxRequest(HttpServletRequest request){
		return ObjectUtils.isNotNull(request.getHeader("X-Requested-With"));
	}
}
